package com.tyk.bookstore.back.product.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author tyk
 * @description 分类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClazzListVo {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "父级ID")
    private Long parentId;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "是否拥有子结点")
    private Boolean hasChildren = true;

    @Schema(description = "子项")
    private List<ClazzListVo> children;
}
